package com.qianfeng.dbsm.dao;

import com.qianfeng.dbsm.entity.TbOrderCommission;
import com.qianfeng.dbsm.vo.CommissionQueryParamVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (TbOrderCommission)表数据库访问层
 *
 * @author makejava
 * @since 2022-11-16 09:29:49
 */
@Mapper
public interface TbOrderCommissionDao {

    /**
     * 通过订单编号查看
     *
     * @param orderNumber 主键
     * @return 实例对象
     */
    List<TbOrderCommission> queryByOrderNumber(@Param("orderNumber")String orderNumber);

    /**
     * 条件查询
     * @param commissionQueryParamVo
     * @return
     */
    List<TbOrderCommission> queryCommissionListByParam(CommissionQueryParamVo commissionQueryParamVo);

    /**
     * 新增数据
     *
     * @param tbOrderCommission 实例对象
     * @return 影响行数
     */
    int insert(TbOrderCommission tbOrderCommission);

    /**
     * 更新分润表
     * @param tbOrderCommission
     * @return
     */
    int updateCommission(TbOrderCommission tbOrderCommission);

}

